package com.wangan.wanganpush.props;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource(value = "classpath:application.yml")
public class MyProps {
    //定时时间配置
    @Value("${myProps.cron}")
    private String cron;

    @Value("${myProps.wangAnIp}")
    private  String wangAnIp;

    /*@Value("${myProps.wangAnPort}")
    private  String wangAnPort;
*/
    @Value("${myProps.ftpUserName}")
    private  String ftpUserName;

    @Value("${myProps.ftpPassword}")
    private  String ftpPassword;

    @Value("${myProps.ftpPath}")
    private  String ftpPath;

    @Value("${myProps.jarPath}")
    private String jarPath;


    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }

    public String getWangAnIp() {
        return wangAnIp;
    }

    public void setWangAnIp(String wangAnIp) {
        this.wangAnIp = wangAnIp;
    }

   /* public String getWangAnPort() {
        return wangAnPort;
    }

    public void setWangAnPort(String wangAnPort) {
        this.wangAnPort = wangAnPort;
    }*/

    public String getFtpUserName() {
        return ftpUserName;
    }

    public void setFtpUserName(String ftpUserName) {
        this.ftpUserName = ftpUserName;
    }

    public String getFtpPassword() {
        return ftpPassword;
    }

    public void setFtpPassword(String ftpPassword) {
        this.ftpPassword = ftpPassword;
    }

    public String getFtpPath() {
        return ftpPath;
    }

    public void setFtpPath(String ftpPath) {
        this.ftpPath = ftpPath;
    }

    public String getJarPath() {
        return jarPath;
    }

    public void setJarPath(String jarPath) {
        this.jarPath = jarPath;
    }
}
